package heima3_2.cn.osc.ui.message_fragment;

import android.support.v4.app.FragmentActivity;

import heima3_2.cn.osc.base.MyBaseAdapter;
import heima3_2.cn.osc.base.OurTabBaseFragment;
import heima3_2.cn.osc.presenter.CallMePresenter;
import heima3_2.cn.osc.ui.adapter.CallMeAdapter;

/**
 * Created by yaozhanlie on 2017/1/18.
 */
public class CallMeFragment extends OurTabBaseFragment {

    private CallMePresenter mCallMePresenter;

    @Override
    protected MyBaseAdapter getAdapter(FragmentActivity activity, Object o) {
        return new CallMeAdapter(activity,null);
    }

    @Override
    public void initPresenter() {
        mCallMePresenter = new CallMePresenter(this);
        mCallMePresenter.getData(0);
    }

    @Override
    public void getMoreData() {
        mCallMePresenter.getData(index++);
    }
}
